<template>
  <div id="app">
    <el-container class="container">
      <!-- 头部 -->
      <el-card>
        <el-header height="60px">
          <el-row type="flex" justify="center" style="width: 1000px">
            <el-col :span="4">
              <div class="logo">
                <img src="~@/assets/common/logo.jpg" alt="" />
              </div>
            </el-col>
            <el-col :span="20">
              <el-menu :default-active="$route.fullPath" mode="horizontal" router>
                <el-menu-item index="/">首页</el-menu-item>
                <el-menu-item index="/agent">房产经纪</el-menu-item>
                <el-menu-item index="/class">地产分类</el-menu-item>
                <el-menu-item index="/statement">关于我们</el-menu-item>
              </el-menu>
            </el-col>
          </el-row>
        </el-header>
      </el-card>
      <el-row type="flex" justify="center">
        <!-- 内容 -->
        <el-col>
          <el-main>
            <keep-alive>
              <router-view />
            </keep-alive>
          </el-main>
        </el-col>
      </el-row>
      <el-footer>
        <!-- 底部 -->
        <EstateFooter></EstateFooter>
      </el-footer>
    </el-container>
  </div>
</template>
<script>
import EstateFooter from '../src/components/EstateFooter/index.vue'
export default {
  name: 'App',
  components: {
    EstateFooter
  },
  data() {
    return {
    }
  }
}
</script>
<style lang="less" scoped>
.container {
  /deep/.el-card__body {
    padding: 0;
    .el-header {
      margin: 0 auto;
      width: 1000px;
      .logo {
        padding-left: 50px;
        width: 100px;
        height: 60px;
        img {
          width: 60px;
        }
      }
    }
  }
  .el-footer {
    padding: 0;
  }
}
</style>